import network from './request'
import apiList from './apiList'


export function getTeamInfo(data, params) {
    return network.request({
        url: apiList.team.getTeamInfo,
        data,
        ...params
    })
}

export function getTeamUsers(data, params) {
    return network.request({
        url: apiList.team.getTeamUsers,
        data,
        ...params
    })
}

export function editTeamInfo(data, params) {
    return network.request({
        url: apiList.team.editTeamInfo,
        data,
        ...params
    })
}

export function editTeamUser(data, params) {
    return network.request({
        url: apiList.team.editTeamUser,
        data,
        ...params
    })
}

export function editJoinTeam(data, params) {
    return network.request({
        url: apiList.team.editJoinTeam,
        data,
        ...params
    })
}

export function getTeamShareCnt(data, params) {
    return network.request({
        url: apiList.team.getTeamShareCnt,
        data,
        ...params
    })
}

export function getTeamShareHisByDynamic(data, params) {
    return network.request({
        url: apiList.team.getTeamShareHisByDynamic,
        data,
        ...params
    })
}

export function getTeamShareHisByUser(data, params) {
    return network.request({
        url: apiList.team.getTeamShareHisByUser,
        data,
        ...params
    })
}

export function getTeamShareUsers(data, params) {
    return network.request({
        url: apiList.team.getTeamShareUsers,
        data,
        ...params
    })
}
